// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
// 全局引入store状态管理仓库
import {store} from './store/store'
// 引入图片懒加载
import VueLazyload from 'vue-lazyload'
//引入资源请求插件
import axios from 'axios'
// 引入 Element
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
//全局引入bootstrap
import "../node_modules/bootstrap/dist/css/bootstrap.min.css"
import "../node_modules/bootstrap/dist/js/bootstrap.min.js"
// 引入swiper
import Swiper from 'swiper'
// import 'swiper/;
// 配置使用elementui
Vue.use(ElementUI)
Vue.config.productionTip = false
// 配置使用axios异步请求
Vue.prototype.$axios = axios
// 使用懒加载
Vue.use(VueLazyload,{
  preLoad: 1.3,
  error: 'lazylod375x409.png',
  loading: '../../assets/images/yongflowerimg/lazylod375x409.png',
  attempt: 1
})
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  // 使用stote仓库管理数据
  store,
  components: { App },
  template: '<App/>'
})
